/*
 * @Author: chen haoxuan
 * @Date: 2021-06-13 22:41:42
 * @LastEditTime: 2021-06-13 22:48:19
 */
#include<iostream>
using namespace std;
class Point
{
  public:
    Point(float x=0,float y=0);
    void setPoint(float,float);
    float getX() const {return x;};
    float getY() const {return y;};
    friend ostream & operator <<(ostream& ,const Point&);
  protected:
    float x,y;
};
Point::Point(float a,float b)
{
  x=a;
  y=b;
}
void Point::setPoint(float a,float b)
{
  x=a;
  y=b;
}
ostream & operator<<(ostream&output ,const Point&p)
{
  output<<"["<<p.x<<","<<p.y<<"]"<<endl;
  return output;
}